package io.jee.runshan.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "runshan_weixin_menu_content")
@JsonIgnoreProperties(value = {"menu"})
public class WeixinMenuContent {
	private Integer id;
	private Integer orderIndex;
	private String title; // 标题
	private String thumbnailUrl; // 缩略图
	private String introducte; // 简介
	private String content; // 内容
	private String url; // 地址
	private WeixinMenu menu;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOrderIndex() {
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getThumbnailUrl() {
		return thumbnailUrl;
	}

	public void setThumbnailUrl(String thumbnailUrl) {
		this.thumbnailUrl = thumbnailUrl;
	}

	public String getIntroducte() {
		return introducte;
	}

	public void setIntroducte(String introducte) {
		this.introducte = introducte;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@ManyToOne
	public WeixinMenu getMenu() {
		return menu;
	}

	public void setMenu(WeixinMenu menu) {
		this.menu = menu;
	}

}
